import { Suspense, lazy } from 'react'
import {
  TeamOutlined
} from '@ant-design/icons'
import Layout from '@/pages/layout/index.jsx'
import { Spin } from 'antd'

const Role = lazy(() => import('@/pages/role/index.jsx'))

export default [
  {
    path: "/role",
    element: (<Layout></Layout>),
    meta: { title: "角色管理",  icon: <TeamOutlined />},
    children: [
      { index: true, element: (
        <Suspense fallback={<Spin />}><Role /></Suspense>
      ) },
    ]
  },
]
